<!DOCTYPE HTML>
<html>
	<head>
		<title>SOAP-Test for synchronous requests</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<meta name="script" http-equiv="Content-Script-Type" content="text/javascript" />
		<meta name="script" http-equiv="Content-Style-Type" content="text/css" />
		<meta http-equiv="Access-Control-Allow-Origin" content="*">
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
		<script src="../error/soap_request_error_handler.js" type="text/javascript"></script>
		<script>
                    function test() {
                        soapRequErroHdl = new SoapRequestErrorHandler();
                        soapRequErroHdl.error("Smth went wrong");
                        setTimeout(function() {
                            soapRequErroHdl.removeErrors();
                        }, 5000);
                        
                        soapRequErroHdl.warn('Warn !!');
                        setTimeout(function() {
                            soapRequErroHdl.removeWarnings()
                        }, 5000);
                        
                        soapRequErroHdl.error("Smth went wrong 2nd time", false);
                        soapRequErroHdl.warn('Warn 2nd time!!', false);
                        soapRequErroHdl.showErrorMessages();
                        soapRequErroHdl.showWarnMessages();
                        setTimeout(function() {
                            soapRequErroHdl.removeAllMessages();
                        }, 5000);
                    }
                        
		</script>
	</head>
	<body>
            <ul id="error"></ul>
            <ul id="warn"></ul>
		<button onclick="test()">Test ErrorHdl</button>
	</body>
</html>